export default {
  state: {
      status: [
          {id: '1', val: '财务已开票'},
          {id: '2', val: '财务开票未批准'},
          {id: '3', val: '业务已领票'},
          {id: '4', val: '业务领票未批准'},
          {id: '5', val: '财务已收款'},
          {id: '6', val: '财务收款未批准'},
          {id: '7', val: '已收票未付款'},
          {id: '8', val: '业务收票未批准'},
          {id: '9', val: '已领票未付款'},
          {id: '10', val: '财务领票未批准'},
          {id: '11', val: '已领票已付款'},
          {id: '12', val: '财务付款未批准'},
          {id: '13', val: '未付款已审批'},
          {id: '14', val: '领导付款未批准'},
          {id: '15', val: '已付款未收票'},
          {id: '16', val: '财务打款未批准'},
          {id: '17', val: '已付款已收票'},
          {id: '18', val: '加急业务收票未批准'},
          {id: '19', val: '已付款已领票'},
          {id: '20', val: '加急财务领票未批准'},
          {id: '21', val: '已付款未开票'},
          {id: '22', val: '预收付款审批未通过'},
          {id: '23', val: '已付款已开票'},
          {id: '24', val: '开票审批未通过'},
          {id: '25', val: '发票已寄出'},
          {id: '26', val: '寄票审批未通过'},
          {id: '27', val: '业务已审批'},
          {id: '28', val: '业务审批未通过'},
          {id: '29', val: '已付款未售票'},
          {id: '30', val: '预付付款审批未通过'},
          {id: '31', val: '已收票'},
          {id: '32', val: '业务收票审批未通过'},
          {id: '33', val: '审批完成'},
          {id: '34', val: '财务收票审批未通过'},
          {id: '35', val: '部门已审批'},
          {id: '36', val: '部门已拒绝'},
          {id: '37', val: '合同业务已审批'},
          {id: '38', val: '合同业务拒绝审批'},
          {id: '39', val: '财务已审批'},
          {id: '40', val: '财务拒绝审批'},
          {id: '41', val: '已邮寄'},
          {id: '42', val: '拒绝邮寄'},
          {id: '43', val: '已归档'},
          {id: '44', val: '拒归档'},
          {id: '45', val: '合同业务已审批'},
          {id: '46', val: '合同业务拒绝审批'},
          {id: '47', val: '合同财务已审批'},
          {id: '48', val: '合同财务拒绝审批'},
          {id: '49', val: '已邮寄'},
          {id: '50', val: '拒绝邮寄'},
          {id: '51', val: '已归档'},
          {id: '52', val: '拒归档'},
          {id: '53', val: '账号商务已审批'},
          {id: '54', val: '账号商务未批准'},
          {id: '55', val: '账号财务已审批'},
          {id: '56', val: '账号财务未批准'},
          {id: '57', val: '平台商务已审批'},
          {id: '58', val: '平台商务未批准'},
          {id: '59', val: '平台财务已审批'},
          {id: '60', val: '平台财务未批准'},
          {id: '61', val: '平台领导已审批'},
          {id: '62', val: '平台领导未批准'},
          {id: '63', val: '预收款商务已审批'},
          {id: '64', val: '预收款商务未批准'},
          {id: '65', val: '预收款财务已审批'},
          {id: '66', val: '预收款财务未批准'},
          {id: '67', val: '商务已批准'},
          {id: '68', val: '商务未批准'},
          {id: '69', val: '财务已批准'},
          {id: '70', val: '财务未批准'},
          {id: '71', val: '快递单号已填充'},
          {id: '72', val: '快递未执行'},
          {id: '73', val: '款项已入账'},
          {id: '74', val: '款项未入账'},
          {id: '75', val: '平台对账商务已批准'},
          {id: '76', val: '平台对账商务未批准'},
          {id: '77', val: '平台对账财务已批准'},
          {id: '78', val: '平台对账财务未批准'},
          {id: '79', val: '平台对账快递单号已填充'},
          {id: '80', val: '平台对账快递未执行'},
          {id: '81', val: '平台对账发票已收'},
          {id: '82', val: '平台对账发票未收'},
          {id: '83', val: '商务领导已批准'},
          {id: '84', val: '商务领导未批准'},
          {id: '85', val: '平台对账商务领导已批准'},
          {id: '86', val: '平台对账商务领导未批准'},
          {id: '90', val: '开票申请_客户结算'},
          {id: '91', val: '开票申请未批准_客户结算'},
          {id: '92', val: '开票审批_客户结算'},
          {id: '93', val: '开票审批未批准_客户结算'},
          {id: '94', val: '开票中_客户结算'},
          {id: '95', val: '开票中未批准_客户结算'},
          {id: '96', val: '业务员领票_客户结算'},
          {id: '97', val: '业务员领票未批准_客户结算'},
          {id: '98', val: '邮寄发票_客户结算'},
          {id: '99', val: '邮寄发票未批准_客户结算'},
          {id: '100', val: '财务收款_客户结算'},
          {id: '101', val: '财务收款未批准_客户结算'},
          {id: '102', val: '商务确认_客户结算'},
          {id: '103', val: '商务确认未批准_客户结算'},
          {id: '104', val: '已收发票_渠道结算'},
          {id: '105', val: '已收发票未批准_渠道结算'},
          {id: '106', val: '财务收票_渠道结算'},
          {id: '107', val: '财务收票未批准_渠道结算'},
          {id: '108', val: '提交付款_渠道结算'},
          {id: '109', val: '提交付款未批准_渠道结算'},
          {id: '110', val: '财务已付款_渠道结算'},
          {id: '111', val: '财务已收款未批准_渠道结算'},
          {id: '112', val: '商务确认_渠道结算'},
          {id: '113', val: '商务确认未批准_渠道结算'},
          {id: '1024',val:'审批已提交'},
      ],
  },
  getters: {
      cpaDingStatus: state => {
          return state.status.filter(s => parseInt(s.id) <= 44);
      },
      fdpDingStatus: state => {
          let fdpStatus=state.status.filter(s => parseInt(s.id) >= 67 && parseInt(s.id) <= 74);
          fdpStatus.unshift({id:'0',val:'财务已确认'});
          fdpStatus.push({id:'1024',val:'审批已提交'});
          return fdpStatus;
      },
      findDingStatus: (state) => (id) => {
          return state.status.find(s => parseInt(s.id) === parseInt(id));
      },
  },
  mutations: {}
};
